package android.serialport;

import java.util.List;

/**
 * Created by danjj on 2020/8/15 0015.
 */
public class SerialPortEvent {
    //帧头 + 数据长度 + 指令 + 数据 + CRC校验
    public byte[] data;
    //指令位
    public int cmd;
    //body  参数位+数据
    public List<Integer> body;
    //数据String  字符串
    public String dataString;

    public SerialPortEvent(byte[] data, int cmd) {
        this.data = data;
        this.cmd = cmd;
        this.body = body;
    }
}
